'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/system/menu', controller.system.menu.index);
    router.get('/system/parentMenu', controller.system.menu.getParentMenu);
    router.post('/system/menu', controller.system.menu.add);
    router.delete('/system/menu', controller.system.menu.destroy);
    router.get('/system/menuInfo', controller.system.menu.show);
    router.post('/system/menu/edit', controller.system.menu.edit);
};
